<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input id="nG4Cs1" type="text" style="width: 140px">
<button id="nG4Cy1" type="button" onclick="selectClick()">查询</button>
<button id="set" type="button" onclick="setInput()">设置</button>
</body>
</html>
<script>
  function setInput() {
    document.getElementById('nG4Cs1').value = 123456789
    document.getElementById('nG4Cy1').click()
  }

  function selectClick() {
    console.log('点击了')
    const text = document.getElementById('nG4Cs1').value
    console.log(text)
  }

  function test() {
      const list = [1,2,3,4,5,6]
      console.log(list.shift())
      console.log(list)
  }
  test()
</script>
